#include <zlib.h>
#include <iostream>

#include "mycrc32.h"

using std::cout;
using std::endl;

uint32_t get_crc32 (void *buf, unsigned int length)
{
	uLong crc = crc32(0L, Z_NULL, 0);
        crc = crc32(crc, (Bytef*)buf, length);
	return crc;
}
